package Runde5;

public interface Iter<A> {
	
	/**
	 * @postcondition Places iterator on next element in list and returns it.
	 */
	A next();
	
	/**
	 * @postcondition Places iterator on previous element in list and returns it.
	 */
	A previous();
	
	/**
	 * @postcondition Returns true if next() != null.
	 */
	boolean hasNext();
	
	/**
	 * @postcondition Returns true if previous() != null.
	 */
	boolean hasPrevious();
	
}
